
package com.houxr.dubbo.service.impl;

import com.houxr.apis.HelloDubboService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @author fengjx.
 * @date：2015/1/6 0006
 */
@Service("helloDubboService")
public class HelloDubboServiceImpl implements HelloDubboService {

    private static Logger logger = LoggerFactory.getLogger(HelloDubboServiceImpl.class);

    /**
     * 暴露的接口
     *
     * @param name
     * @return
     */
    public String sayHello(String name) {
        logger.info("call sayHello:name={}", name);
        return "Hello " + name;
    }

}
